Skip to content

Don't de-dot ecs.version - #118

Merged
xrmx merged 2 commits into
elastic:mainfrom
xrmx:fix-88
Jun 13, 2024
Merged

Don't de-dot ecs.version#118
xrmx merged 2 commits into
elastic:mainfrom
xrmx:fix-88

Conversation

@xrmx

@xrmx xrmx commented Jun 12, 2024

Copy link
Copy Markdown
Member

While at it test on modern python versions.

Closes #88

Comment thread ecs_logging/_stdlib.py
value = extractors[field](record)
if value is not None:
merge_dicts(de_dot(field, value), result)
# special case ecs.version that should not be de-dotted

@xrmx xrmx Jun 12, 2024

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like log.level survives de_dot without special cases apparently but I can't see where it gets a different treatment than the rest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird! 🤔

@xrmx
xrmx requested a review from basepi June 12, 2024 16:07
Comment thread ecs_logging/_stdlib.py
value = extractors[field](record)
if value is not None:
merge_dicts(de_dot(field, value), result)
# special case ecs.version that should not be de-dotted

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird! 🤔

@xrmx
xrmx merged commit e3875fc into elastic:main Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update ecs.version to match spec

2 participants